package cn.itcast.dtx.tccdemo.bank1.client.fallback;

import cn.itcast.dtx.tccdemo.bank1.client.Bank2Client;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class Bank2Fallback implements Bank2Client {

    /**
     * 转账
     *
     * @param amount
     * @return
     */
    @Override
    public Boolean transfer(Double amount) {
        log.info("Bank2Client transfer转账失败，转账金额：【{}】",amount);
        return false;
    }
}
